
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont icon-jianshao"></i>
                    <div class="name">减少</div>
                    <div class="fontclass">.icon-jianshao</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-chenggong2"></i>
                    <div class="name">成功</div>
                    <div class="fontclass">.icon-chenggong2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-chaxun"></i>
                    <div class="name">查询</div>
                    <div class="fontclass">.icon-chaxun</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-all_address"></i>
                    <div class="name">all_address</div>
                    <div class="fontclass">.icon-all_address</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-all_logistics"></i>
                    <div class="name">all_logistics</div>
                    <div class="fontclass">.icon-all_logistics</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-enter"></i>
                    <div class="name">enter</div>
                    <div class="fontclass">.icon-enter</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-phone"></i>
                    <div class="name">phone</div>
                    <div class="fontclass">.icon-phone</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-plus"></i>
                    <div class="name">增加</div>
                    <div class="fontclass">.icon-plus</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-back"></i>
                    <div class="name">back</div>
                    <div class="fontclass">.icon-back</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-password"></i>
                    <div class="name">password</div>
                    <div class="fontclass">.icon-password</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-mine_pressed"></i>
                    <div class="name">mine_pressed</div>
                    <div class="fontclass">.icon-mine_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-scene_pressed"></i>
                    <div class="name">scene_pressed</div>
                    <div class="fontclass">.icon-scene_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-scene_default"></i>
                    <div class="name">scene_default</div>
                    <div class="fontclass">.icon-scene_default</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-mine_default"></i>
                    <div class="name">mine_default</div>
                    <div class="fontclass">.icon-mine_default</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-merchant_default"></i>
                    <div class="name">merchant_default</div>
                    <div class="fontclass">.icon-merchant_default</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-merchant_pressed"></i>
                    <div class="name">merchant_pressed</div>
                    <div class="fontclass">.icon-merchant_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-filtrate"></i>
                    <div class="name">filtrate</div>
                    <div class="fontclass">.icon-filtrate</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-edit"></i>
                    <div class="name">edit</div>
                    <div class="fontclass">.icon-edit</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-address"></i>
                    <div class="name">address</div>
                    <div class="fontclass">.icon-address</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-indent"></i>
                    <div class="name">indent</div>
                    <div class="fontclass">.icon-indent</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-wait"></i>
                    <div class="name">wait</div>
                    <div class="fontclass">.icon-wait</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-collect_pressed"></i>
                    <div class="name">collect_pressed</div>
                    <div class="fontclass">.icon-collect_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-collect_default"></i>
                    <div class="name">collect_default</div>
                    <div class="fontclass">.icon-collect_default</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-phone1"></i>
                    <div class="name">phone</div>
                    <div class="fontclass">.icon-phone1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-all_choose_default"></i>
                    <div class="name">all_choose_default</div>
                    <div class="fontclass">.icon-all_choose_default</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sex_girl"></i>
                    <div class="name">sex_girl</div>
                    <div class="fontclass">.icon-sex_girl</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sex_boy"></i>
                    <div class="name">sex_boy</div>
                    <div class="fontclass">.icon-sex_boy</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-integral"></i>
                    <div class="name">integral</div>
                    <div class="fontclass">.icon-integral</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-cart"></i>
                    <div class="name">cart</div>
                    <div class="fontclass">.icon-cart</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-delete"></i>
                    <div class="name">delete</div>
                    <div class="fontclass">.icon-delete</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-store_default"></i>
                    <div class="name">store_default</div>
                    <div class="fontclass">.icon-store_default</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-commodity"></i>
                    <div class="name">commodity</div>
                    <div class="fontclass">.icon-commodity</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-state_refuse"></i>
                    <div class="name">state_refuse</div>
                    <div class="fontclass">.icon-state_refuse</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-set"></i>
                    <div class="name">set</div>
                    <div class="fontclass">.icon-set</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-store_pressed"></i>
                    <div class="name">store_pressed</div>
                    <div class="fontclass">.icon-store_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-state_wait"></i>
                    <div class="name">state_wait</div>
                    <div class="fontclass">.icon-state_wait</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-course_pressed"></i>
                    <div class="name">course_pressed</div>
                    <div class="fontclass">.icon-course_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-course_default"></i>
                    <div class="name">course_default</div>
                    <div class="fontclass">.icon-course_default</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-mine_apart"></i>
                    <div class="name">mine_apart</div>
                    <div class="fontclass">.icon-mine_apart</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
